package com.lanou3g.ptp.grade.mapper;

import com.lanou3g.ptp.entity.Grade;
import com.lanou3g.ptp.entity.TaskRole;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface GradeMapper {
    void insertGrade(Grade grade);
    void updateGrade(Grade grade);
    List<Grade> findAll();

    Grade findById(Long id);

    void deleteById(Long id);

    void deleteGradeRoleById(Long gradeId);
//    根据ids批量删除grade
    void deleteByIds(Integer[] ids);
//    通过taskId查询所有参与这次打分的老师
    List<TaskRole> findByTaskId(Long taskId);

}
